var express=require('express');
var bodyParser=require('body-parser');
var app=express();
var router=require('./router.js')
//开放目录
 app.use('/public/',express.static('./public/'))
app.use('/node_modules/',express.static('./node_modules/'))
    app.engine('html', require('express-art-template'));

//配置post解析
// parse application/x-www-form-urlencoded
app.use(bodyParser.urlencoded({ extended: false }))
// parse application/json
app.use(bodyParser.json())

app.use(router);

 app.listen(3000,function () {
     console.log('ok')
 })
